//
//  RouteCell1.m
//  Marketing
//
//  Created by Hanen 3G 01 on 16/5/12.
//  Copyright © 2016年 Hanen 3G 01. All rights reserved.
//

#import "RouteCell1.h"

@implementation RouteCell1

+ (instancetype)cellWithTableView:(UITableView *)tableView
{
    static NSString *routeTypeId = @"cell1";
    RouteCell1 *cell = [tableView dequeueReusableCellWithIdentifier:routeTypeId];
    if (cell == nil) {
        cell = [[RouteCell1 alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:routeTypeId];
        [cell addSubviews];
    }
    
    return cell;
}
- (void)addSubviews
{
    UIImageView *imge = [[UIImageView alloc] initWithFrame:CGRectMake(23.0f, 0, 2, [RouteCell1 cellHeight])];
    imge.backgroundColor = lightGrayBackColor;
    [self.contentView addSubview:imge];
    
    
    self.infoLabel = [ViewTool getLabelWith:CGRectMake(48.0f, 0, KSCreenW - 40.0f - imge.maxX, [RouteCell1 cellHeight]) WithTitle:@"" WithFontSize:16.0f WithTitleColor:grayFontColor WithTextAlignment:NSTextAlignmentLeft];
    self.infoLabel.numberOfLines = 0;
    [self.contentView addSubview:self.infoLabel];
    
    self.typeImageView = [[UIImageView alloc] initWithFrame:CGRectMake(KSCreenW - 40, [RouteCell1 cellHeight] / 2.0f - 10, 20.0f, 20.0f)];
      [self.contentView addSubview:self.typeImageView];
    
}
+ (CGFloat)cellHeight
{
    return 60.0f;
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
